<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
<div class="clear"></div>
<div class="cataBrand mt15">
  <div class="hpcata left mr10 bor1">
    <div class="hcata-title clearfix mb5"><a class="fr morelink mt5 pr10" href="{url('Default','Sitemap')}" target="_blank" title="分类导航">查看所有分类</a>
      <h2 class="fl mt10 pl10 f14">热门搜索</h2>
    </div>
    <div class="hcatabox clearfix">
      <h3 class="hcatabox-t fl mr5 f12"></h3>
      <div class="fl hcatabox-df">
        <ul class="hcalist clearfix">
{if !empty($this->data['list'])}
<!--{loop $this->data['list'] $item}-->
<li {if $k==100}class="li-end"{/if}><a href="{url('Default','List',array('k'=>$item['name'],'c'=>$item['category_id']))}" title="{$item['name']}">{$item['name']}</a></li>
<!--{/loop}-->
{/if}
        </ul>
      </div>
    </div>  
   <div class="clear"></div>
   <div class="page-sep">
            <div class="pagination"> {$this->data['pages']}</div>
          </div>  
  </div>
  <div class="right hbrand bor1">
  {TagList(array(),'id ASC',0,20,'id,name')}
          {if !empty($pvTagList['rows'])}
  <div class="tag">
  <h4 class="tag-title" title="Tag">相关标签</h4>
  <ul class="tag-list tag-list-icons">
          <!--{loop $pvTagList['rows'] $item}--> 
          {if $this->data['tag_id']==$item['id']}<li class="tag-list-item"> <a title="{$item['name']}"> {$item['name']}</a></li>{else}<li class="tag-list-item"><a href="{url('Post','List',array('tag'=>$item['id']))}" title="{$item['name']}">{$item['name']}</a></li>{/if} 
          <!--{/loop}--> 
  </ul>
  <p class="tag-line"></p>
  <p style="text-align:right; padding-right:20px;"><a href="#tag" target="_blank">更多 &gt;&gt;</a></p>
</div>
<div class="clear"></div>
  {/if}
  {RecentView(6,array('num_iid','title','pic_url'),3600)}
{if !empty($pvRecentViewList)}
    <div class="clearfix">
      <h2 class="fl hot-title pl10">最新浏览</h2>
    </div>
    <ul class="clearfix hblist">
	<!--{loop $pvRecentViewList $k $item}-->
	<li><a href="{url('Default','View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}" title="{strip_tags($item['title'])}" target="_blank"><img alt="{strip_tags($item['title'])}" src="{$this->data['baseurl']}images/loading.gif" u="{EncodeImg $item['pic_url']}_b.{$this->data['cf']->getFileExt($item['pic_url'])}" /></a></li>
	<!--{/loop}-->
    </ul>
 <div class="clear"></div>
    {/if}
{PostList(array('type'=>1,'status'=>1),'last_updated DESC',0,5,'id,title',3600,'site_right')}
{if !empty($pvPostList['rows'])}
<div class="bbs_zx">
  <div class="tit tit_right">
    <h2>最新动态</h2>
  </div>
  <ul>
	<!--{loop $pvPostList['rows'] $k $item}-->
	<li {if $k<3}class="red"{else}class=""{/if}><span>·</span><a href="{url('Post','View',array('id'=>$item['id']))}" title="{$item['title']}" target="_blank">{$item['title']}</a></li>
	<!--{/loop}-->
  </ul>
</div>
<div class="clear"></div>
{/if}    
  </div>
</div>
<div class="clear"></div>
<div class="top_part day_follow">
  <div class="hd">
    <h3>每日<strong>关注</strong>商品</h3>
    <i class="icon_line"></i> </div>
  <div class="bd"> 
    <div  class="tab_cont"> 
      <ul class="tab_item" style="visibility: visible;">
      	{HotView(10,array('num_iid','title','pic_url','price'),3600)}
		{if !empty($pvRecentViewList)}
		<!--{loop $pvRecentViewList $k $item}-->
        {if $k==0}
        <li class="on"> <span class="order order_{$k+1}">{$k+1}</span> <a class="img_wrap" href="{url('Default','View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}" target="_blank" title="{$item['title']}"><img src="{$this->data['baseurl']}images/loading.gif" u="{EncodeImg $item['pic_url']}_b.{$this->data['cf']->getFileExt($item['pic_url'])}"></a>
          <div class="img_detail">
            <div class="name_wrap"> <a class="name" href="{url('Default','View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}" target="_blank">{$item['title']}</a></div>
            <p class="price"><span class="shop_price">¥{$item['price']}</span></p>
            <p style="visibility:hidden;" class="grade_wrap"><i class="grade_bg"><i style="width:80%" class="grade">&nbsp;</i></i> </p>
            <p class="btn_wrap"><a class="btn" linktype="click-url" href="#" nid="{$item['num_iid']}"  target="_blank">立即购买</a></p>
          </div>
        </li>
        {else}
        <li > <span class="order order_{$k+1}">{$k+1}</span> 
        <div class="img_detail">
            <div class="name_wrap"> <a class="name" href="{url('Default','View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}" target="_blank">{$item['title']}</a><span class="amount"><span class="co_red"><a class="btn" linktype="click-url" href="#" nid="{$item['num_iid']}"  target="_blank">去购买</a></span></span></div>
          </div>
        </li>
        {/if}
       <!--{/loop}-->
		{/if}
      </ul>
    </div>
  </div>
</div>
<div class="top_part day_follow">
  <div class="hd">
    <h3>每日<strong>热门</strong>商品</h3>
    <i class="icon_line"></i> </div>
  <div class="bd"> 
    <div class="tab_cont"> 
      <ul class="tab_item" style="visibility: visible;">
      	{RecentClick(10,array('num_iid','title','pic_url','price'),3600)}
		{if !empty($pvRecentViewList)}
		<!--{loop $pvRecentViewList $k $item}-->
        {if $k==0}
        <li class="on"> <span class="order order_{$k+1}">{$k+1}</span> <a class="img_wrap" href="{url('Default','View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}" target="_blank" title="{$item['title']}"><img src="{$this->data['baseurl']}images/loading.gif" u="{EncodeImg $item['pic_url']}_b.{$this->data['cf']->getFileExt($item['pic_url'])}"></a>
          <div class="img_detail">
            <div class="name_wrap"> <a class="name" href="{url('Default','View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}" target="_blank">{$item['title']}</a></div>
            <p class="price"><span class="shop_price">¥{$item['price']}</span></p>
            <p style="visibility:hidden;" class="grade_wrap"><i class="grade_bg"><i style="width:80%" class="grade">&nbsp;</i></i> </p>
            <p class="btn_wrap"><a class="btn" linktype="click-url" href="#" nid="{$item['num_iid']}"  target="_blank">立即购买</a></p>
          </div>
        </li>
        {else}
        <li > <span class="order order_{$k+1}">{$k+1}</span> 
        <div class="img_detail">
            <div class="name_wrap"> <a class="name" href="{url('Default','View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}" target="_blank">{$item['title']}</a><span class="amount"><span class="co_red"><a class="btn" linktype="click-url" href="#" nid="{$item['num_iid']}"  target="_blank">去购买</a></span></span></div>
          </div>
        </li>
        {/if}
       <!--{/loop}-->
		{/if}
      </ul>
    </div>
  </div>
</div>
<div class="clear"></div>
<script language="javascript">
var defaultClickUrl	= "{$this->data['clickUrl']}";
replaceLink();
replaceImage();
</script>